﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using TrialManagmentTool.Models;

namespace TrialManagmentTool.Controllers.API
{
    public class PromoterController : ApiController
    {
        public List<Province> GetDistrict(string provinceID)
        {
            //List<Dictionary<int, string>> data = new List<Dictionary<int, string>>();
            Province p = new Province();
            List<Province> result = new List<Province>();
            Dictionary<int, string> value = new Dictionary<int, string>();

            if (provinceID == "51801")
            {
                result.Add(new Province { code = "1", address = "A" });
                result.Add(new Province { code = "2", address = "B" });

            }
            else
            {
                result.Add(new Province { code = "1", address = "C" });
                result.Add(new Province { code = "2", address = "D" });

            }

            return result;
        }
    }
}
